package com.example.dragandview.animation;

import android.app.Activity;
import android.os.Bundle;
import android.widget.ImageView;

import com.example.dragandview.R;
import com.example.dragandview.seniorUI.Utils;

public class AnimationActivity extends Activity {
    private ImageView iv;
    @Override
    protected void onCreate( Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.animation_index);
        iv = findViewById(R.id.iv_anim);
        iv.animate()
                .translationX(Utils.dpToPixel(200))
                .translationY(100)
                .rotation(180)
                .alpha(0.5f)
                .setStartDelay(1000)
                .start();
    }
}
